<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>title</title>
</head>
<body>
<% //java代码
Boolean bool = new Boolean(false);
byte bytetmp = 88;
Byte by = new Byte(bytetmp);
short shortmp = 99;
Short st = new Short(shortmp);
int i = 122;
Integer it = new Integer(i);
long l = 123421314;
Long ll = new Long(l);
float f = 22.0f;
Float ff = new Float(f);
double d = 434.23;
Double dd = new Double(d);

//输出
out.println("布尔型包装类对象bool的值为：" + bool.booleanValue() + "<br>");
out.println("字节型包装类对象by的值为：" + by.byteValue() + "<br>");
out.println("短整型包装类st的值为：" + st.shortValue() + "<br>");
out.println("整型包装类it的值为：" + it.intValue() + "<br>");
out.println("长整型包装类对象ll的值为：" + ll.longValue() + "<br>");
out.println("单精度浮点型包装类对象ff的值为：" + ff.floatValue() + "<br>");
out.println("双精度型包装类对象dd的值为：" + dd.doubleValue() + "<br>");
%>
</body>
</html>